package org.jeecg.modules.power.shop.service;

import org.jeecg.modules.app.v1.shop.entity.ApiShopCategoryEntity;
import org.jeecg.modules.power.shop.entity.YlShopCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.exception.JeecgBootException;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;

/**
 * @Description: 门店品类
 * @Author: jeecg-boot
 * @Date:   2024-07-11
 * @Version: V1.0
 */
public interface IYlShopCategoryService extends IService<YlShopCategory> {

	/**根节点父ID的值*/
	public static final String ROOT_PID_VALUE = "0";
	
	/**树节点有子节点状态值*/
	public static final String HASCHILD = "1";
	
	/**树节点无子节点状态值*/
	public static final String NOCHILD = "0";

	/**新增节点*/
	void addYlShopCategory(YlShopCategory ylShopCategory);
	
	/**修改节点*/
	void updateYlShopCategory(YlShopCategory ylShopCategory) throws JeecgBootException;
	
	/**删除节点*/
	void deleteYlShopCategory(String id) throws JeecgBootException;

	/**查询所有数据，无分页*/
    List<YlShopCategory> queryTreeListNoPage(QueryWrapper<YlShopCategory> queryWrapper);

	/**
	 * ApiShopCategoryEntity
	 */
	List<ApiShopCategoryEntity> getList();

	/**
	 * 获取门店组织数据
	 * @return
	 */
	List<ApiShopCategoryEntity> getOrgList();

}
